package com.myproject.music.domain;


import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

public class User{
    @ApiModelProperty("歌手id")
    private Long id;

    @ApiModelProperty("歌手名字")
    @NotBlank(message = "歌手名字不能为空")
    @Size(min = 1, max = 20, message = "歌手名字必须在1到20个字符之间")
    private String name;

    @ApiModelProperty
    private String description;

    @ApiModelProperty
    private String category;

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    @ApiModelProperty
    private Date birthdate;


    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }
}